.class final Lnet/tsapps/topdeals/aj;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Lnet/tsapps/topdeals/PreferencesActivity;


# direct methods
.method constructor <init>(Lnet/tsapps/topdeals/PreferencesActivity;)V
    .locals 0

    iput-object p1, p0, Lnet/tsapps/topdeals/aj;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final run()V
    .locals 6

    :try_start_0
    iget-object v0, p0, Lnet/tsapps/topdeals/aj;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    iget-object v1, p0, Lnet/tsapps/topdeals/aj;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    invoke-static {v1}, Lnet/tsapps/topdeals/PreferencesActivity;->a(Lnet/tsapps/topdeals/PreferencesActivity;)Lnet/tsapps/topdeals/h/a;

    move-result-object v1

    invoke-virtual {v1}, Lnet/tsapps/topdeals/h/a;->a()Lnet/tsapps/topdeals/objects/ConfigResponse;

    move-result-object v1

    invoke-static {v0, v1}, Lnet/tsapps/topdeals/PreferencesActivity;->a(Lnet/tsapps/topdeals/PreferencesActivity;Lnet/tsapps/topdeals/objects/ConfigResponse;)V

    iget-object v0, p0, Lnet/tsapps/topdeals/aj;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    invoke-static {v0}, Lnet/tsapps/topdeals/PreferencesActivity;->a(Lnet/tsapps/topdeals/PreferencesActivity;)Lnet/tsapps/topdeals/h/a;

    move-result-object v1

    iget-object v0, p0, Lnet/tsapps/topdeals/aj;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    invoke-static {v0}, Lnet/tsapps/topdeals/PreferencesActivity;->b(Lnet/tsapps/topdeals/PreferencesActivity;)Lnet/tsapps/topdeals/e/b;

    move-result-object v2

    iget-object v0, p0, Lnet/tsapps/topdeals/aj;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    invoke-static {v0}, Lnet/tsapps/topdeals/PreferencesActivity;->c(Lnet/tsapps/topdeals/PreferencesActivity;)Lnet/tsapps/topdeals/objects/ConfigResponse;

    move-result-object v0

    iget-object v0, v0, Lnet/tsapps/topdeals/objects/ConfigResponse;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :cond_0
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_1

    invoke-virtual {v2}, Lnet/tsapps/topdeals/e/b;->a()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Lnet/tsapps/topdeals/h/a;->a(Ljava/lang/String;)V

    iget-object v0, p0, Lnet/tsapps/topdeals/aj;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    invoke-static {v0}, Lnet/tsapps/topdeals/PreferencesActivity;->a(Lnet/tsapps/topdeals/PreferencesActivity;)Lnet/tsapps/topdeals/h/a;

    move-result-object v1

    iget-object v0, p0, Lnet/tsapps/topdeals/aj;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    invoke-static {v0}, Lnet/tsapps/topdeals/PreferencesActivity;->d(Lnet/tsapps/topdeals/PreferencesActivity;)Lnet/tsapps/topdeals/e/d;

    move-result-object v2

    iget-object v0, p0, Lnet/tsapps/topdeals/aj;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    invoke-static {v0}, Lnet/tsapps/topdeals/PreferencesActivity;->c(Lnet/tsapps/topdeals/PreferencesActivity;)Lnet/tsapps/topdeals/objects/ConfigResponse;

    move-result-object v0

    iget-object v0, v0, Lnet/tsapps/topdeals/objects/ConfigResponse;->a:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :goto_0
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_2

    invoke-virtual {v2}, Lnet/tsapps/topdeals/e/d;->a()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Lnet/tsapps/topdeals/h/a;->b(Ljava/lang/String;)V

    iget-object v0, p0, Lnet/tsapps/topdeals/aj;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    new-instance v1, Lnet/tsapps/topdeals/ap;

    invoke-direct {v1, p0}, Lnet/tsapps/topdeals/ap;-><init>(Lnet/tsapps/topdeals/aj;)V

    invoke-virtual {v0, v1}, Lnet/tsapps/topdeals/PreferencesActivity;->runOnUiThread(Ljava/lang/Runnable;)V

    :goto_1
    return-void

    :cond_1
    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnet/tsapps/topdeals/objects/Region;

    iget-object v0, v0, Lnet/tsapps/topdeals/objects/Region;->c:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v4

    :goto_2
    invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnet/tsapps/topdeals/objects/Location;

    invoke-virtual {v2, v0}, Lnet/tsapps/topdeals/e/b;->a(Lnet/tsapps/topdeals/objects/Location;)I
    :try_end_0
    .catch Lnet/tsapps/topdeals/g/a; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_2

    :catch_0
    move-exception v0

    iget-object v0, p0, Lnet/tsapps/topdeals/aj;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    new-instance v1, Lnet/tsapps/topdeals/ao;

    invoke-direct {v1, p0}, Lnet/tsapps/topdeals/ao;-><init>(Lnet/tsapps/topdeals/aj;)V

    invoke-virtual {v0, v1}, Lnet/tsapps/topdeals/PreferencesActivity;->runOnUiThread(Ljava/lang/Runnable;)V

    goto :goto_1

    :cond_2
    :try_start_1
    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnet/tsapps/topdeals/objects/Dealer;

    iget-wide v4, v0, Lnet/tsapps/topdeals/objects/Dealer;->b:J

    invoke-virtual {v2, v4, v5}, Lnet/tsapps/topdeals/e/d;->a(J)Z
    :try_end_1
    .catch Lnet/tsapps/topdeals/g/a; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0
.end method
